64 #define SLAVE_ADDRESS 0x48
73 0xB0, 0xB1, 0xB2, 0xB3, 0xB4};
80 WDT_A_hold(WDT_A_BASE);
83 GPIO_setAsPeripheralModuleFunctionInputPin(
89 USCI_B_I2C_initSlave(USCI_B0_BASE,
94 USCI_B_I2C_setMode(USCI_B0_BASE,
95 USCI_B_I2C_TRANSMIT_MODE
99 USCI_B_I2C_enable(USCI_B0_BASE);
102 USCI_B_I2C_enableInterrupt(USCI_B0_BASE,
103 USCI_B_I2C_TRANSMIT_INTERRUPT + USCI_B_I2C_STOP_INTERRUPT
112 __bis_SR_register(LPM0_bits + GIE);
123 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
124 #pragma vector=USCI_B0_VECTOR
126 #elif defined(__GNUC__)
127 __attribute__((interrupt(USCI_B0_VECTOR)))
131 switch (__even_in_range(UCB0IV,12)){
132 case USCI_I2C_UCSTPIFG:
136 case USCI_I2C_UCTXIFG:
139 USCI_B_I2C_slavePutData(USCI_B0_BASE,
__bic_SR_register_on_exit(LPM3_bits|GIE)
unsigned char transmitData[]
unsigned char transmitLength
unsigned char * transmitDataPointer